package com.ray.scan;

import java.util.ArrayList;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import android.content.Context;

public class Util {

//    private final static String url = "http://192.168.0.4:8080/checkin/m/checkin";
    public static String postStr(Context context, String url, final String str){
        ArrayList<NameValuePair> pairs = new ArrayList<NameValuePair>();
        NameValuePair pair1 = new BasicNameValuePair("EmpNo", str);
        pairs.add(pair1);
        try {
            return HttpUtil.post(url, pairs);
        } catch (Exception e) {
        }
        return "";
    }
}
